package com.bsoft.gol.hcs.specialist.entity;

import javax.persistence.*;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.Date;
import java.util.Objects;

/**
 * 检验报告微生物记录表
 * @author lanyu
 * @date 2021年10月14日 10:07
 */
@Entity
@Table(name = "inspect_report_microbe_record")
@XmlRootElement(name = "BioResult")
public class InspectReportMicrobeRecordEntity {
    /**
     * 检验报告微生物记录id
     */
    private String inspectReportMicrobeRecordId;
    /**
     * 检验报告id
     */
    private String inspectReportId;
    /**
     * 细菌代码
     */
    private String bioId;
    /**
     * 细菌名称
     */
    private String bioName;
    /**
     * 微生物类型
     */
    private String bioType;
    /**
     * 细菌数量
     */
    private String bioQuantity;
    /**
     * 细菌数量单位
     */
    private String bioUnit;
    /**
     * 细菌顺序号
     */
    private String bioNo;
    /**
     * 细菌备注信息
     */
    private String bioRemarks;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 修改时间
     */
    private Date modifyTime;

    @Id
    @Column(name = "inspect_report_microbe_record_id")
    public String getInspectReportMicrobeRecordId() {
        return inspectReportMicrobeRecordId;
    }

    public void setInspectReportMicrobeRecordId(String inspectReportMicrobeRecordId) {
        this.inspectReportMicrobeRecordId = inspectReportMicrobeRecordId;
    }

    @Basic
    @Column(name = "inspect_report_id")
    public String getInspectReportId() {
        return inspectReportId;
    }

    public void setInspectReportId(String inspectReportId) {
        this.inspectReportId = inspectReportId;
    }

    @Basic
    @Column(name = "bio_id")
    @XmlElement(name = "BioId")
    public String getBioId() {
        return bioId;
    }

    public void setBioId(String bioId) {
        this.bioId = bioId;
    }

    @Basic
    @Column(name = "bio_name")
    @XmlElement(name = "BioName")
    public String getBioName() {
        return bioName;
    }

    public void setBioName(String bioName) {
        this.bioName = bioName;
    }

    @Basic
    @Column(name = "bio_type")
    @XmlElement(name = "BioTyp")
    public String getBioType() {
        return bioType;
    }

    public void setBioType(String bioType) {
        this.bioType = bioType;
    }

    @Basic
    @Column(name = "bio_quantity")
    @XmlElement(name = "BioQuantity")
    public String getBioQuantity() {
        return bioQuantity;
    }

    public void setBioQuantity(String bioQuantity) {
        this.bioQuantity = bioQuantity;
    }

    @Basic
    @Column(name = "bio_unit")
    @XmlElement(name = "BioUnit")
    public String getBioUnit() {
        return bioUnit;
    }

    public void setBioUnit(String bioUnit) {
        this.bioUnit = bioUnit;
    }

    @Basic
    @Column(name = "bio_no")
    @XmlElement(name = "BioNo")
    public String getBioNo() {
        return bioNo;
    }

    public void setBioNo(String bioNo) {
        this.bioNo = bioNo;
    }

    @Basic
    @Column(name = "bio_remarks")
    @XmlElement(name = "BioRemarks")
    public String getBioRemarks() {
        return bioRemarks;
    }

    public void setBioRemarks(String bioRemarks) {
        this.bioRemarks = bioRemarks;
    }

    @Basic
    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "modify_time")
    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        InspectReportMicrobeRecordEntity that = (InspectReportMicrobeRecordEntity) o;
        return Objects.equals(inspectReportMicrobeRecordId, that.inspectReportMicrobeRecordId) && Objects.equals(inspectReportId, that.inspectReportId) && Objects.equals(bioId, that.bioId) && Objects.equals(bioName, that.bioName) && Objects.equals(bioType, that.bioType) && Objects.equals(bioQuantity, that.bioQuantity) && Objects.equals(bioUnit, that.bioUnit) && Objects.equals(bioNo, that.bioNo) && Objects.equals(bioRemarks, that.bioRemarks) && Objects.equals(createTime, that.createTime) && Objects.equals(modifyTime, that.modifyTime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(inspectReportMicrobeRecordId, inspectReportId, bioId, bioName, bioType, bioQuantity, bioUnit, bioNo, bioRemarks, createTime, modifyTime);
    }
}
